import request from './http';
import {SsoAppJwtConfig} from "@/types/entity";

/**
 * jwt配置表 前端接口
 */
export default class SsoAppJwtConfigApi {
  static page(data: SsoAppJwtConfig) {
    let { index, size, ...vo } = data;
    return request.post(`/ssoAppJwtConfig/page/${index}/${size}`, vo);
  }

  static save(data: SsoAppJwtConfig) {
    return request.post<SsoAppJwtConfig>('/ssoAppJwtConfig', data);
  }

  static update(data: SsoAppJwtConfig) {
    return request.put<SsoAppJwtConfig>('/ssoAppJwtConfig', data);
  }

  static delete(ids: number[]) {
    return request.post('/ssoAppJwtConfig/delete', ids);
  }

  static list(data: SsoAppJwtConfig) {
    return request.post('/ssoAppJwtConfig/list', data);
  }

  static getById(id: string) {
    return request.get(`/ssoAppJwtConfig/get/${id}`);
  }


}
